﻿using Microsoft.Extensions.DependencyInjection;
using RabbitMQ.Client;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp;
using Volo.Abp.Autofac;
using Volo.Abp.Modularity;
using Volo.Abp.RabbitMQ;

namespace RabbitMQDemo.DelayQueue.Consumer
{
    [DependsOn(typeof(AbpRabbitMqModule),
        typeof(AbpAutofacModule)
        )]
    public  class MessageConsumerModule:AbpModule
    {
        public override void ConfigureServices(ServiceConfigurationContext context)
        {
            Configure<AbpRabbitMqOptions>(options =>
            {

                var factory = new ConnectionFactory() { HostName = "127.0.0.1", UserName = "guest", Password = "guest" };
                options.Connections.Default = factory;
            });
        }
       
    }
}
